# 思考题
# # names = ["小方","小明","小红","小林"]
# # print(names)
# # renames =names
# # a = {}
# # for i in renames:
# #    if renames.count(i)>1:
# #        a[i] = renames.count(i)
# # print (a)
# # print(names.copy())


# 投票系统
# # 列表list
# # students = ["小方","小明","小红","小林"]
student = {
    "小方": 0,
    "小明": 0,
    "小红": 0,
    "小林": 0
}
count = 0
while count < 5:
    name = input("请输入你心仪的班长的姓名")
    if name == "小方":
        student["小方"] += 1
    elif name == "小明":
        student["小明"] += 1
    elif name == "小红":
        student["小红"] += 1
    else:
        student["小林"] += 1
    count += 1
print(student)
